package com.hbms.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hbms.common.annotation.Excel;
import com.hbms.common.core.domain.BaseEntity;

/**
 * 酒店评价对象 hotelbms_hotelreviews
 * 
 * @author zl
 * @date 2024-04-10
 */
public class HotelbmsHotelreviews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评价ID */
    private Long reviewId;

    /** 酒店ID */
    @Excel(name = "酒店ID")
    private Long hotelId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 评分 */
    @Excel(name = "评分")
    private Long rating;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String comments;

    /** 评价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 创建者ID */
    @Excel(name = "创建者ID")
    private Long createdBy;

    public void setReviewId(Long reviewId) 
    {
        this.reviewId = reviewId;
    }

    public Long getReviewId() 
    {
        return reviewId;
    }
    public void setHotelId(Long hotelId) 
    {
        this.hotelId = hotelId;
    }

    public Long getHotelId() 
    {
        return hotelId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRating(Long rating) 
    {
        this.rating = rating;
    }

    public Long getRating() 
    {
        return rating;
    }
    public void setComments(String comments) 
    {
        this.comments = comments;
    }

    public String getComments() 
    {
        return comments;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setCreatedBy(Long createdBy) 
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy() 
    {
        return createdBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reviewId", getReviewId())
            .append("hotelId", getHotelId())
            .append("userId", getUserId())
            .append("rating", getRating())
            .append("comments", getComments())
            .append("date", getDate())
            .append("createdBy", getCreatedBy())
            .toString();
    }
}
